<?php
/**
 * Created by PhpStorm.
 * User: 图图
 * Date: 2021-6-8
 * Time: 16:29
 */

namespace app\web\controller;

use app\common\controller\Api;
use app\common\model\Area;
use app\common\model\Factor;
use app\common\model\Fenorder;
use app\common\model\Order as OrderModel;
use app\common\model\Goods;
use app\web\controller\Express;
use think\Db;
use app\common\controller\Alipay;

/**
 * 上钟规则控制器（轮排，点钟，call钟）
 * @package app\index\controller
 */
class SchedulingRule extends Auth
{
    public $noNeedLogin = [];

    /**
     * 获取服务项目分类
     */
    public function getProjectCate(){
        if($this->request->isPost()){
            $userInfo = $this->userInfo;
            $data = Db::name('qt_project_category')
                ->field('id,name')
                ->where(['store_id'=>$userInfo['store_id']])
                ->order('sort asc')
                ->select();
            $this->result('查询成功',$data,200);
        }
        $this->result('无效的请求','',204);
    }

}
